@import '~@/uni_modules/lime-style/index.scss';
$prefix: l !default;
$item: #{$prefix}-picker-item;

$picker-group-height: create-var(picker-group-height, 400rpx);
$picker-indicator-bg-color: create-var(picker-indicator-bg-color, $fill-4);
$picker-indicator-border-radius: create-var(picker-indicator-border-radius, 12rpx);

$picker-item-height: create-var(picker-item-height, 50px);
$picker-item-active-color: create-var(picker-item-active-color, $text-color-1);
$picker-item-color: create-var(picker-item-color, $text-color-1);
$picker-item-font-size: create-var(picker-item-font-size, $font-size-md);

/* #ifndef APP-ANDROID || APP-IOS */
:host {
	flex: 1;
	display: flex;
}
/* #endif */


.#{$item} {
	&__group {
		/* #ifdef WEB */
		:deep(.uni-picker-view-content) {
			// 300ms
			transition-duration: var(--picker-duration, 0);
		}
		/* #endif */
		flex: 1;
		// height: $picker-group-height;
		&-item {
			height: $picker-item-height;
			line-height: $picker-item-height;
			text-align: center;
			/* #ifndef APP-ANDROID || APP-IOS */
			display: flex;
			justify-content: center;
			/* #endif */
			transition-duration: 100ms;
			transition-property: font-weight, color;
			transition-timing-function: linear;
			font-weight: 400;
			color: $picker-item-color;
			font-size: $picker-item-font-size;
			white-space: nowrap;
			&--active {
				color: $picker-item-active-color;
				font-weight: 700;
			}
		}
	}
	&__indicator {
	    // position: absolute;
	    left: 0rpx;
	    right: 0rpx;
		
		width: auto;
		height: $picker-item-height;
	    // top: 144rpx;
	    pointer-events: none;
	    background-color: $picker-indicator-bg-color;
	    // border-radius: $picker-indicator-border-radius;
		/* #ifndef APP-ANDROID || APP-IOS */
		&:after,&:before{
			display: none;
		}
		/* #endif */
	}
}

